﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ListPage.Master" AutoEventWireup="true"
    CodeBehind="List_Fee.aspx.cs" Inherits="IMIS_ERP.Web.Head_Factory.List_Fee" %>

<%@ Register Src="../Controls/Pagination.ascx" TagName="Pagination" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="top">
        <div id="t_left">
            <img src="../images/tab_t_l.gif" />
            <span class="f1">您当前的位置</span>：【加工中心结算信息】-【管理原材料结算】
        </div>
        <div id="t_right">
            <img src="../images/ico_add.gif" align="middle" />
            <a href="Search_Fee.aspx">新增</a>
        </div>
    </div>
    <div id="middle">
        <div id="m_left">
        </div>
        <asp:GridView ID="GV" CssClass="GV" runat="server" CellPadding="3" AutoGenerateColumns="False"
            DataKeyNames="hfID" OnRowCreated="GV_RowCreated" 
            onrowcancelingedit="GV_RowCancelingEdit" onrowediting="GV_RowEditing" 
            onrowupdating="GV_RowUpdating">
            <Columns>
                <asp:BoundField DataField="hfTime" HeaderText="时间" ReadOnly="true" />
                <asp:BoundField DataField="hfFiID" HeaderText="加工厂ID" ReadOnly="true" />
                <asp:BoundField DataField="hfType" HeaderText="类型" ReadOnly="true" />
                <asp:TemplateField HeaderText="产品型号">
                    <ItemTemplate>
                        <asp:Label ID="Label6" runat="server" Text='<%# Bind("hfPcID") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txthfPcID" runat="server" Text='<%# Bind("hfPcID") %>' Width="100px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="数量">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("hfNum") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txthfNum" runat="server" Text='<%# Bind("hfNum") %>' Width="30px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="重量">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("hfWeight") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txthfWeight" runat="server" Text='<%# Bind("hfWeight") %>' Width="40px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="单价">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("hfPrice") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txthfPrice" runat="server" Text='<%# Bind("hfPrice") %>' Width="40px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="金额">
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# Bind("hfFee") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txthfFee" runat="server" Text='<%# Bind("hfFee") %>' Width="50px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="hfFeeNow" HeaderText="当前余额" ReadOnly="True" />
                <%--<asp:TemplateField HeaderText="当前余额">
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("hfFeeNow") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txthfFeeNow" runat="server" Text='<%# Bind("hfFeeNow") %>' Width="60px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>--%>
                <asp:TemplateField HeaderText="备注">
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("hfRemark") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txthfRemark" runat="server" Text='<%# Bind("hfRemark") %>' Width="100px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="hfHuID" HeaderText="入账人员" ReadOnly="True" />
                <asp:TemplateField HeaderText="基本操作" ItemStyle-CssClass="operate2">
                    <ItemTemplate>
                        &nbsp; &nbsp;<img src="../images/ico_modify.gif" /><a 
                            href='<%# Eval("hfID", "Show_Fee.aspx?id={0}") %>'>详细</a> &nbsp; &nbsp;<img src="../images/ico_edt.gif" /><asp:LinkButton 
                            ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Edit" 
                            Text="编辑"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                            Text="更新"></asp:LinkButton>
                        &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="取消"></asp:LinkButton>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle CssClass="gv_row" />
            <SelectedRowStyle CssClass="gv_sel" />
            <PagerStyle CssClass="gv_pag" />
            <HeaderStyle CssClass="gv_hea" />
            <AlternatingRowStyle CssClass="gv_alt" />
            <FooterStyle CssClass="gv_foo" />
        </asp:GridView>
        <div id="m_right">
        </div>
    </div>
    <div id="bottom">
        <div id="b_left">
            <span class="f2">&nbsp;&nbsp;共有
                <asp:Label ID="lblRecordCount" runat="server"></asp:Label>
                条记录，当前第
                <asp:Label ID="lblPageNow" runat="server"></asp:Label>/<asp:Label ID="lblPageCount"
                    runat="server"></asp:Label>
                页</span>
        </div>
        <div id="b_right">
            <uc1:Pagination ID="Pagination1" runat="server" />
        </div>
    </div>
    &nbsp; &nbsp;&nbsp; &nbsp;<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><br />
    <div class="query">
        <span class="f1">关键字：</span>
        <asp:DropDownList ID="ddlSearch" runat="server">
            <asp:ListItem Value="hfFiID">加工厂ID</asp:ListItem>
            <asp:ListItem Value="hfType">类型</asp:ListItem>
            <asp:ListItem Value="hfPcID">产品型号</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtSearch" name="txtSearch" runat="server"></asp:TextBox>&nbsp;&nbsp;<asp:CheckBox
            ID="ckbIsIn" runat="server" Text="在结果中查询" />
        &nbsp;&nbsp;
        <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"></asp:Button>
        <input id="btnCancel"" type="button" value="清空" onclick="Query_Empty();" />
</asp:Content>
